#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class Web_Messages : Business.BusinessBase<Web_Messages, int>
	{
		#region Fields and Properties

		private String manager_Code = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Manager_Code
		{
			get { return manager_Code; }
			set
			{
				if (value != manager_Code)
				{
					MarkChanged("Manager_Code");
					manager_Code = value;
				}
			}
		}

		private DateTime message_PubDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime Message_PubDate
		{
			get { return message_PubDate; }
			set
			{
				if (value != message_PubDate)
				{
					MarkChanged("Message_PubDate");
					message_PubDate = value;
				}
			}
		}

		private String message_Content = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Message_Content
		{
			get { return message_Content; }
			set
			{
				if (value != message_Content)
				{
					MarkChanged("Message_Content");
					message_Content = value;
				}
			}
		}

		private String message_Title = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Message_Title
		{
			get { return message_Title; }
			set
			{
				if (value != message_Title)
				{
					MarkChanged("Message_Title");
					message_Title = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public Web_Messages()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override Web_Messages DataSelect(int id)
		{
			return Services.DALService.Web_MessagesService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.Web_MessagesService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.Web_MessagesService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.Web_MessagesService.Delete(this);
		}

		#endregion Base overrides
	}
}
